import request from '@/utils/request'

const api_name = '/admin/product/brand'

// 分页列表
export const GetBrandPageList = (page, limit) => {
    return request({
        url: `${api_name}/${page}/${limit}`,
        method: 'get'
    })
}
// 保存品牌
export const SaveBrand = brand => {
    return request({
        url: `${api_name}/save`,
        method: 'post',
        data: brand,
    })
}
// 修改信息
export const UpdateBrandById = brand => {
    return request({
        url: `${api_name}/update`,
        method: 'put',
        data: brand,
    })
}
// 删除信息
export const DeleteBradeById = (id) => {
    return request({
        url: `${api_name}/removeById/${id}`,
        method: 'delete',
    })
}
// 查询所有的品牌数据
export const FindAllBrand = () => {
    return request({
        url: `${api_name}/findAll`,
        method: 'get',
    })
}